<h2>Foto saya</h2>
<div id="photoAlbumList">
    <?php foreach($photos as $photo) : ?>
    <div class="photoThumbnail">
        <a href="<?php echo $this->createUrl('photo/detail/' . $photo->id)?>">
            <img src="<?php echo $GLOBALS['base_path'] . PhotoModel::$UPLOAD_DIR . $photo->name?>" alt="" />
        </a>
        <br />
        <a href="<?php echo $this->createUrl('photo/delete/' . $photo->id)?>">Hapus</a>
        <?php if ($photo->id != $this->auth->photo_id) : ?>
            <a href="<?php echo $this->createUrl('photo/setprofile/' . $photo->id)?>">Foto profil</a>
        <?php endif;?>
    </div>
    <?php endforeach;?>
</div>
<div class="dummy"></div>
<div>
    <a href="<?php echo $this->createUrl('photo/index');?>">Unggah Foto Baru</a>
</div>
<div class="dummy"></div>
